<template>
  <div class="settings-container">
    <el-card class="box-card">
      <template #header>
        <div class="card-header">
          <span>系统设置</span>
        </div>
      </template>
      
      <el-tabs v-model="activeTab">
        <el-tab-pane label="销售管理" name="sales">
          <sales-management />
        </el-tab-pane>
        <el-tab-pane label="组长管理" name="leaders">
          <leaders-management />
        </el-tab-pane>
        <el-tab-pane label="团队管理" name="teams">
          <teams-management />
        </el-tab-pane>
      </el-tabs>
    </el-card>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import SalesManagement from './components/SalesManagement.vue'
import LeadersManagement from './components/LeadersManagement.vue'
import TeamsManagement from './components/TeamsManagement.vue'

const activeTab = ref('sales')
</script>

<style scoped>
.settings-container {
  padding: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.box-card {
  margin-bottom: 20px;
}
</style> 